<template>
  <el-container>
    <el-header style="height: 100px; background-color: #eae5e3">
      <el-row
        justify="space-around"
        style="text-align: center; line-height: 100px"
      >
        <el-col :span="4"> <span class="logo">N</span> <span style="line-height: 100px;">注册</span> </el-col>
        <el-col :span="4">
            <router-link to="/login"> 已有账号?去登陆>></router-link>
        </el-col>
      </el-row>
    </el-header>
    <el-main style="flex: calc(100vh - 100px); background-color: #f5f3f2">
      <el-row justify="center">
        <el-card style="width: 500px">
          <template #header>
            <div style="text-align: center; font-size: 40px;">注册</div>
          </template>

          <el-form :model="userInfo">
            <el-form-item>
              <el-input v-model="userInfo.username">
                <template #prepend
                  ><el-icon><User /></el-icon
                ></template>
              </el-input>
            </el-form-item>
            <el-form-item prop="pass">
              <el-input v-model="userInfo.password" type="password">
                <template #prepend
                  ><el-icon><Lock /></el-icon
                ></template>
              </el-input>
            </el-form-item>
            <el-form-item prop="checkPass">
              <el-input v-model="userInfo.password" type="password">
                <template #prepend
                  ><el-icon><Lock /></el-icon
                ></template>
              </el-input>
            </el-form-item>
            <el-from-item>
              <div style="height: 100px; background-color: aqua"></div>
            </el-from-item>
            <el-form-item>
              <el-button style="width: 100%; margin-top: 10px; background-color: #f5f3f2;">注册</el-button>
            </el-form-item>
          </el-form>
        </el-card>
      </el-row>
    </el-main>
  </el-container>
</template>

<script>
export default {
  data() {
    return {
      userInfo: {
        username: "",
        password: "",
      },
    };
  },
};
</script>

<style scoped>
.logo {
  font-size: 100px;
  color: #3271ae;
}
</style>